package chixing.day09.work;

public class NormalUser extends User implements Authenticatable {
    public NormalUser(String userName, String userPassword)
        {
            super(userName, userPassword);
        }
    @Override
    public boolean login(String username, String password) {
        // 普通用户只需验证用户名和密码
        return userName.equals(username) && userPassword.equals(password);
    }

}
